ExamPlay Light Logo
Prihlásiť sa

Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 8 - No. 31)

What is the main advantage of using a REPEAT...UNTIL loop when compared to a WHILE...DO...ENDWHILE loop?
The REPEAT...UNTIL loop always runs at least once.
The REPEAT...UNTIL loop is more efficient.
The REPEAT...UNTIL loop requires less code.
The REPEAT...UNTIL loop can handle multiple conditions.

Vysvetlenie

The REPEAT...UNTIL loop executes at least once, which is useful when you want something to happen one time, no matter what.

Pripomienky (0)

Ak chcete komentovať, prihláste sa
Reklama
BrainBehindX Inc Logo
©2026; Beží na BrainBehindX Inc